package scalaLearning.part7

class People

class Ultraman() {
  def fight(): Unit = {
    println("打怪兽")
  }
}

object PeopleToUltraman {
  implicit def peopleToUltraman(people: People) = new Ultraman
}

object ImplicitFuncDemo2 {

  import PeopleToUltraman._

  def main(args: Array[String]): Unit = {
    new People().fight()
  }
}
